package com.example.sunmiv1.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class OrderDetailInfo implements Serializable{

    /**
     * status : 1
     * message : 查詢成功
     * data : [{"id":"55165","goods_id":"3503","sku_id":"1799","goods_name":"小米","attribute_state":"2","sku_json_info":"{\"id\":\"1799\",\"store_id\":\"1\",\"goods_id\":\"3503\",\"sku_id_list\":\"302,10\",\"purchase_price\":\"1.00\",\"online_price\":\"1.00\",\"retail_price\":\"1.00\",\"goods_img\":\"\",\"goods_num\":\"10\",\"sku_num\":\"1.000\",\"shop_mem_price\":null,\"store_mem_price\":null,\"plus_price\":null,\"add_time\":\"1614840110\",\"status\":\"1\",\"state\":\"0\",\"type\":\"1\",\"sku_goods_number\":\"94096-6\",\"sku_code\":\"1199826795-6\",\"pd_num\":\"\",\"goods_img_id\":null,\"sku_mgoods_id\":\"0\",\"less_num\":null,\"more_num\":null,\"guide_royalty_price\":null,\"guide_royalty_online_price\":null,\"shop_mem_integral\":null,\"plus_mem_integral\":null,\"store_mem_integral\":null,\"weight_value\":null,\"plu_code\":null,\"name\":\"50g\\uff0c\\u9ed1\\u8272\"}","num":3,"serial_number_state":"1","sell_id":"0","sku_name":"50g，黑色"}]
     */

    private int status;
    private String message;
    private List<DataBean> data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message == null ? "" : message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataBean> getData() {
        if (data == null) {
            return new ArrayList<>();
        }
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        /**
         * id : 55165
         * goods_id : 3503
         * sku_id : 1799
         * goods_name : 小米
         * attribute_state : 2
         * sku_json_info : {"id":"1799","store_id":"1","goods_id":"3503","sku_id_list":"302,10","purchase_price":"1.00","online_price":"1.00","retail_price":"1.00","goods_img":"","goods_num":"10","sku_num":"1.000","shop_mem_price":null,"store_mem_price":null,"plus_price":null,"add_time":"1614840110","status":"1","state":"0","type":"1","sku_goods_number":"94096-6","sku_code":"1199826795-6","pd_num":"","goods_img_id":null,"sku_mgoods_id":"0","less_num":null,"more_num":null,"guide_royalty_price":null,"guide_royalty_online_price":null,"shop_mem_integral":null,"plus_mem_integral":null,"store_mem_integral":null,"weight_value":null,"plu_code":null,"name":"50g\uff0c\u9ed1\u8272"}
         * num : 3
         * serial_number_state : 1
         * sell_id : 0
         * sku_name : 50g，黑色
         */

        private String id;
        private String goods_id;
        private String sku_id;
        private String goods_name;
        private String attribute_state;
        private String sku_json_info;
        private int num;
        private String serial_number_state;
        private String sell_id;
        private String sku_name;
        private List<SerialListBean> serial_list;

        public List<SerialListBean> getSerial_list() {
            if (serial_list == null) {
                return new ArrayList<>();
            }
            return serial_list;
        }

        public void setSerial_list(List<SerialListBean> serial_list) {
            this.serial_list = serial_list;
        }

        public String getId() {
            return id == null ? "" : id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getGoods_id() {
            return goods_id == null ? "" : goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getSku_id() {
            return sku_id == null ? "" : sku_id;
        }

        public void setSku_id(String sku_id) {
            this.sku_id = sku_id;
        }

        public String getGoods_name() {
            return goods_name == null ? "" : goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getAttribute_state() {
            return attribute_state == null ? "" : attribute_state;
        }

        public void setAttribute_state(String attribute_state) {
            this.attribute_state = attribute_state;
        }

        public String getSku_json_info() {
            return sku_json_info == null ? "" : sku_json_info;
        }

        public void setSku_json_info(String sku_json_info) {
            this.sku_json_info = sku_json_info;
        }

        public int getNum() {
            return num;
        }

        public void setNum(int num) {
            this.num = num;
        }

        public String getSerial_number_state() {
            return serial_number_state == null ? "" : serial_number_state;
        }

        public void setSerial_number_state(String serial_number_state) {
            this.serial_number_state = serial_number_state;
        }

        public String getSell_id() {
            return sell_id == null ? "" : sell_id;
        }

        public void setSell_id(String sell_id) {
            this.sell_id = sell_id;
        }

        public String getSku_name() {
            return sku_name == null ? "" : sku_name;
        }

        public void setSku_name(String sku_name) {
            this.sku_name = sku_name;
        }

        public static class SerialListBean implements Serializable{
            private String main_serial_number;
            private String auxiliary_serial_number_one;
            private String auxiliary_serial_number_two;

            public SerialListBean(String main_serial_number, String auxiliary_serial_number_one, String auxiliary_serial_number_two) {
                this.main_serial_number = main_serial_number;
                this.auxiliary_serial_number_one = auxiliary_serial_number_one;
                this.auxiliary_serial_number_two = auxiliary_serial_number_two;
            }

            public String getMain_serial_number() {
                return main_serial_number == null ? "" : main_serial_number;
            }

            public void setMain_serial_number(String main_serial_number) {
                this.main_serial_number = main_serial_number;
            }

            public String getAuxiliary_serial_number_one() {
                return auxiliary_serial_number_one == null ? "" : auxiliary_serial_number_one;
            }

            public void setAuxiliary_serial_number_one(String auxiliary_serial_number_one) {
                this.auxiliary_serial_number_one = auxiliary_serial_number_one;
            }

            public String getAuxiliary_serial_number_two() {
                return auxiliary_serial_number_two == null ? "" : auxiliary_serial_number_two;
            }

            public void setAuxiliary_serial_number_two(String auxiliary_serial_number_two) {
                this.auxiliary_serial_number_two = auxiliary_serial_number_two;
            }
        }

    }
}
